/**
 * Created by xaiodoudou on 2017/11/2.
 */
import Vue from 'vue'
import Vuex from 'vuex'
import mutations from './mutations'
import loadingStatus from './module/loadingStatus'
import userInfo from './module/userInfo'
import cannel from './module/cannel'
import volume from './module/volume'
import nowpage from './module/nowpage'
Vue.use(Vuex)
const state = {
  del_selects: false, // 书架管理是否显示删除界面
  footBar: 'buttomNav', // 记录书管理底部显示状态
  shujiaBookId: [], // 记录书架中所有书籍的ID
  delBookId: [], // 记录要删除的书籍ID
  is_del: []    // 记录某一index下的书籍是否被选中
}
export default new Vuex.Store({
  state,
  mutations,
  modules: {
    loadingStatus, //loading状态
    userInfo, //userInfo信息
    cannel, //书籍频道
    volume, //卷
    nowpage, //当前打开页面 
  }
})
